package dto;

import java.io.Serializable;

import util.DateHelper;

import entity.Trajet;

public class TrajetVO implements PrestationVO, Serializable {
	private static final long serialVersionUID = 1L;
	private long id;
	private DateHelper dateDepart;
	private DateHelper dateArrivee;
	private LieuVO lieuDepart;
	private LieuVO lieuArrivee;
	private ModeTransportVO modeTransport;
	private double tarif;

	public String toString() {
		return "[" 
		+ "Départ de " 
		+ lieuDepart 
		+ " à " 
		+ dateDepart 
		+ ", "
		+ "Arrivée à " 
		+ lieuArrivee 
		+ " à " 
		+ dateArrivee 
		+ ", " 
		+ modeTransport 
		+ ", " 
		+ tarif 
		+ "]";
	}

	public TrajetVO() {
		super();
	}
	public TrajetVO(Trajet t) {
		super();
		this.dateArrivee = new DateHelper(t.getDateArrivee());
		this.dateDepart = new DateHelper(t.getDateDepart());
		this.lieuArrivee = new LieuVO(t.getLieuArrivee());
		this.lieuDepart = new LieuVO(t.getLieuDepart());
		this.modeTransport = new ModeTransportVO(t.getModeTransport());
		this.tarif = t.getTarif();
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public DateHelper getDateDepart() {
		return dateDepart;
	}
	public void setDateDepart(DateHelper dateDepart) {
		this.dateDepart = dateDepart;
	}
	public DateHelper getDateArrivee() {
		return dateArrivee;
	}
	public void setDateArrivee(DateHelper dateArrivee) {
		this.dateArrivee = dateArrivee;
	}
	public LieuVO getLieuDepart() {
		return lieuDepart;
	}
	public void setLieuDepart(LieuVO lieuDepart) {
		this.lieuDepart = lieuDepart;
	}
	public LieuVO getLieuArrivee() {
		return lieuArrivee;
	}
	public void setLieuArrivee(LieuVO lieuArrivee) {
		this.lieuArrivee = lieuArrivee;
	}
	public ModeTransportVO getModeTransport() {
		return modeTransport;
	}
	public void setModeTransport(ModeTransportVO modeTransport) {
		this.modeTransport = modeTransport;
	}
	public double getTarif() {
		return tarif;
	}
	public void setTarif(double tarif) {
		this.tarif = tarif;
	}

}
